find the rule of a arithmetic sequence